<template>
    <van-swipe :autoplay="3000">
        <van-swipe-item v-for="item in imagesArr" :key="item">
            <img :src="item" class="swiper-img" />
        </van-swipe-item>
    </van-swipe>
</template>
<script>
export default {
    props: {
        imagesArr: {
            type: Array,
            // default:[] 为什么必须是函数形式？ https://blog.csdn.net/m0_47135993/article/details/120140017
            default: () => []
        },
    },
    // props: ['msg', 'age', 'imagesArr'],
    data() { }
}
</script>
<style lang="scss" scoped>
.swiper-img {
    width: 100%;
    height: 200px;
}
</style>
